package com.mall.task.TaskImpl;

import com.mall.task.TestTask;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author little_super
 * @project hk_mall_background
 * @package com.mall.task.TaskImpl
 * @create 2017-09-04 21:32
 */
@Component
public class TestTaskImpl implements TestTask{

    //@Scheduled(cron="0/10 * *  * * ? ")每十秒执行一次
    public void test() {
        System.out.println("-------定时器---------");
    }
}
